// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_hm_domain_aliases
// * CreateDate    : 2014-06-05 18:29:56
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:29:56
// * LastChanger   : 2014-06-05 18:29:56
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;
using ESOL.Common;

namespace ESOL.Common.Entity
{
    [DataContract]
	[Serializable]
	public partial class HmDomainAliasesEntity : EntityBase
    {
        public HmDomainAliasesTable TableSchema
        {
            get
            {
                return HmDomainAliasesTable.Current;
            }
		}
		
		public HmDomainAliasesEntity()
        {

        }
		
		public HmDomainAliasesEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.Daid = Convert.ToInt32(CommonFunctions.ToObject(dr["daid"]));
			this.Dadomainid = Convert.ToInt32(CommonFunctions.ToObject(dr["dadomainid"]));
			this.Daalias = Convert.ToString(CommonFunctions.ToObject(dr["daalias"]));
        }
		
		public HmDomainAliasesEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.Daid = Convert.ToInt32(CommonFunctions.ToObject(dr["daid"]));
			this.Dadomainid = Convert.ToInt32(CommonFunctions.ToObject(dr["dadomainid"]));
			this.Daalias = Convert.ToString(CommonFunctions.ToObject(dr["daalias"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return HmDomainAliasesTable.Current;
            }
        }
		
		#region Perporty List
        [DataMember]
        public int Daid
        {
            get { return Convert.ToInt32(GetData(HmDomainAliasesTable.C_daid)); }
            set { SetData(HmDomainAliasesTable.C_daid, value); }
        }
		
        [DataMember]
        public int Dadomainid
        {
            get { return Convert.ToInt32(GetData(HmDomainAliasesTable.C_dadomainid)); }
            set { SetData(HmDomainAliasesTable.C_dadomainid, value); }
        }
		
        [DataMember]
        public string Daalias
        {
            get { return Convert.ToString(GetData(HmDomainAliasesTable.C_daalias)); }
            set { SetData(HmDomainAliasesTable.C_daalias, value); }
        }
		
		#endregion
	}
	
	
}	

